import requests


class EmployeeApi(object):

    @classmethod
    def add_emp(cls, headers, body):
        url = "http://ihrm-test.itheima.net/api/sys/user"
        resp = requests.post(url, headers=headers,json=body)
        return resp

if __name__ == '__main__':
    headers = {
        "Content-Type": "application/json",
        "Authorization": "Bearer e075f0a0-4f9f-4c2f-a62f-77a61d6634ac"
    }
    body_add = {"username": "YG", "mobile": "18210222003", "workNumber": "123"}
    resp = EmployeeApi.add_emp(headers, body_add)
    print(resp.json())